n = int ( raw_input ( " Fatorial de : " ))
fatorial = 1
print " % d ! = " %n ,
i = n
while i > 0:
    fatorial = fatorial * i
    print " % d " %i ,
    if i != 1: print " . " ,
    i -= 1
